﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
                      "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<link  href="/stylesheets/tests.css" type="text/css" rel="stylesheet" media="screen">
<h1>Jump tests</h1>

<table>        
  <tr>
    <th>测试名称</th>
    <th>测试标题</th>
    <th>测试描述</th>
    <!--th>Original result</th-->
   <th></th>
    <th>测试类型</th>
  </tr>

<% @ts.each do |test| %>
  <tr>
    <td><%=h test.name %></td>
    <td><%=h test.title %></td>
    <td><%=h test.description %></td>
    <td><%=h test.original_result %></td>
    <td><%=h test.t_type %></td>
    <td width="100"></td>
    <td><%= link_to '添加题目', {:id => test, :action => :new_question}%></td>
    <td><%= link_to '显示', {:id => test, :action => :show } %></td>
    <td><%= link_to '编辑', {:id => test, :action => :edit } %></td>
    <td><%= link_to '删除', {:id => test , :action =>:destory }, :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />
<%= link_to 'add new ' , :action => :add_new %>
